package com.vegetable.modules.entity.inbound.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.vegetable.modules.entity.baseData.ProductSpec;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 销售订货
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SalesOrder对象", description="销售订货")
public class ProductsImport implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Excel(name = "商品编码")
    private String commonCode;

    @Excel(name = "商品名称")
    private String commonName;

    @Excel(name = "标重")
    private BigDecimal standardWeight;

    @Excel(name = "规格名称")
    private String specsName;
    
    @Excel(name = "商品图片链接")
    private String imageUrl;


    private List<ProductSpec> specList;

}